Import('env')

penv = env.Clone()

penv.ParseConfig("pkg-config GraphicsMagickWand --libs --cflags")
penv['CPPPATH'].append('#source/')

pd_gm_converter = penv.SharedLibrary(target='pd_gm_converter',
                                     source='gm_converter.c',
                                     SHLIBVERSION='1')

env.InstallVersionedLib(env['libdir'], pd_gm_converter)
